package com.midian.common.pay.tenpay.util;

public class ConstantUtil {
	/**
	 * 商家可以考虑读取配置文件
	 */
	
	//初始化
	public static String APP_ID = "wx6ec4b95185411c3c";//微信开发平台应用id（需要配置）
	public static String APP_SECRET = "e27867f76bca1a55204d97ef785237d1";
	//public static String APP_SECRET = "f869e5822d608ea0e687e23245e25c11";//应用对应的凭证（需要配置）
	//应用对应的密钥
	@Deprecated
	public static String APP_KEY = "qzaXf5GKNUlrHEyFlQkC4WyL1fttERp8kFCSWNSPgfdpuGPqbFVQRYxRVqQs24MtSCliM49KVoVhVB61irNddb0HFWfQVWPOtl4ecIjUJXpEqCQWlr53Q9CRABl2KceU";
	public static String PARTNER = "1377474002";//财付通商户号（需要配置）
	
	public static String PARTNER_KEY = "7ebe57b5fe10598cef238b0714347f94";//商户号对应的密钥（需要配置）
	public static String TOKENURL = "https://api.weixin.qq.com/cgi-bin/token";//获取access_token对应的url
	public static String GRANT_TYPE = "client_credential";//常量固定值 
	public static String EXPIRE_ERRCODE = "42001";//access_token失效后请求返回的errcode
	public static String FAIL_ERRCODE = "40001";//重复获取导致上一次获取的access_token失效,返回错误码
	public static String GATEURL = "https://api.weixin.qq.com/pay/genprepay?access_token=";//获取预支付id的接口url
	public static String ACCESS_TOKEN = "access_token";//access_token常量值
	public static String ERRORCODE = "errcode ";//用来判断access_token是否失效的值
	public static String SIGN_METHOD = "sha1";//签名算法常量值
	//package常量值
	public static String packageValue = "bank_type=WX&body=%B2%E2%CA%D4&fee_type=1&input_charset=GBK&notify_url=http%3A%2F%2F127.0.0.1%3A8180%2Ftenpay_api_b2c%2FpayNotifyUrl.jsp&out_trade_no=2051571832&partner=1900000109&sign=10DA99BCB3F63EF23E4981B331B0A3EF&spbill_create_ip=127.0.0.1&time_expire=20131222091010&total_fee=1";
	public static String traceid = "";//测试用户id
} 
